package com.qf.entity;

import java.util.List;

/**
 * @author 徐老板
 * @date 2020/3/26   9:16
 */
public class BillType {
    private int id;
    private String name;
    //两张表的关系通过属性来添加 一对多的关系
    private List<Bills> billsList;

    public List<Bills> getBillsList() {
        return billsList;
    }

    public void setBillsList(List<Bills> billsList) {
        this.billsList = billsList;
    }

    @Override
    public String toString() {
        return "BillType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    public BillType() {
    }

    public BillType(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
